package com.jmeurope.action;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;
import org.apache.struts2.json.annotations.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.jmeurope.model.Information;
import com.jmeurope.model.User;
import com.jmeurope.service.InformationService;
import com.opensymphony.xwork2.ActionSupport;
/**
 * 
 * <p>
 * Description: 
 * </p>
 *
 * @author wangwei
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-1-2 下午4:44:41          wangwei        1.0         To create
 * </p>
 *
 * @since 
 * @see
 */
@Controller
@Scope("prototype")
public class JMUserAction extends ActionSupport {
	private User user;
	private static final long serialVersionUID = 1L;
	public String add() {
		HttpServletResponse response = ServletActionContext.getResponse();
		try {
			response.getWriter().write("ok");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
		
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
